<?php

/**
 * TODO: describe class 'swzz_EmployeeStd'
 *
 * @package swzz
 */
class swzz_EmployeeStd extends swzz_Employee
{

    // ---- PROPERTIES ----

    /**
     * limit Wydatków Pracownika
     * 
     * @var 
     *
     * @orm 
     */
    public $limitPurchases;

    /**
     * TODO: describe property 'baskets'
     *
     * @var array of swzz_Basket
     *
     * @orm has many swzz_Basket inverse(employeeStd)
     */
    public $baskets;

    // ---- METHODS ----

    /**
     * TODO: describe method '__construct'
     *
     */
    public function __construct() {
    }

    /**
     * TODO: describe method 'getLimitPurchases'
     *
     */
    public function getLimitPurchases() {
        return $this->limitPurchases;
    }

    /**
     * TODO: describe method 'setLimitPurchases'
     *
     * @param  $limitPurchases 
     */
    public function setLimitPurchases($limitPurchases) {
        $this->limitPurchases = $limitPurchases;
    }

    /**
     * TODO: describe method 'getBaskets'
     *
     * @return array 
     */
    public function getBaskets() {
        return $this->baskets;
    }

    /**
     * TODO: describe method 'setBaskets'
     *
     * @param array $baskets 
     */
    public function setBaskets(array $baskets) {
        $this->baskets = $baskets;
    }

    /**
     * TODO: describe method 'addBasket'
     *
     * @param swzz_Basket $basket 
     */
    public function addBasket(swzz_Basket $basket) {
        $this->baskets[] = $basket;
    }

    /**
     * TODO: describe method 'removeBasket'
     *
     * @param swzz_Basket $basket 
     */
    public function removeBasket(swzz_Basket $basket) {
        $key = array_search($basket, $this->baskets, true);

        if ($key !== false) {
            unset($this->baskets[$key]);
        }
    }

} // end of class swzz_EmployeeStd

?>